@extends('layouts.app')

@section('content')
    @if(!empty($categories))
        <el-aside width="150px" class="hidden-xs-only">
            <left-menu :categories='@json($categories)'></left-menu>
        </el-aside>
    @endif
    <el-main>
        @if (session('status'))
            <div class="alert alert-success">
                {{ session('status') }}
            </div>
        @endif
        @if (!$category)
            <el-collapse>
                <el-collapse-item title="Metal Max Xeno" name="1">
                    <div>
                        <p>待添加</p>
                    </div>
                </el-collapse-item>
            </el-collapse>
        @else
            <room-list :platforms='@json($platforms)' :category='@json($category)'></room-list>
        @endif
    </el-main>
@endsection
